package com.glureau.aib.server;

import org.mindrot.jbcrypt.BCrypt;
import org.mortbay.jetty.security.Credential.MD5;

public class TestBCrypt {
	public static void main(String[] args) {
		String passwd = "tatouage";
		String hash = BCrypt.hashpw(passwd, BCrypt.gensalt());
		System.out.println(BCrypt.checkpw(passwd, hash));
		System.out.println(MD5.digest("plop" + System.currentTimeMillis()).substring(4));
	}
}
